package edu.nf.supermarket.service.impl;

import edu.nf.supermarket.entity.Classify;
import edu.nf.supermarket.mapper.ClassifyMapper;
import edu.nf.supermarket.service.ClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yjj
 * @date 2025-05-21
 */
@Service("classifyService")
public class ClassifyServiceImpl implements ClassifyService {
    @Autowired
    private ClassifyMapper mapper;

    @Override
    public List<Classify> findAllClassify() {
        return mapper.findAllClassify();
    }

    @Override
    public void delClassify(Integer classifyId) {
        mapper.delClassify(classifyId);
    }

    @Override
    public void updateClassify(Classify classify) {
        mapper.updateClassify(classify);
    }

    @Override
    public void addClassify(Classify classify) {
        mapper.addClassify(classify);
    }
}
